﻿using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Collections;
using System.Data;
using System.ComponentModel;
using System.Data.OracleClient;
using WPFExcelReport.Helpers;
using WPFExcelReport.Controls;
using System;
using System.Collections.Generic;
using ReflectionStudio.Core.Events;
namespace WPFExcelReport
{

    public partial class VVKZUAB
    {
        public readonly static VVKZUAB Instance = new VVKZUAB();
        VVESTAMM VS;
        public double GETVKZUABVALUE(Dictionary<string, object> pm)
        {
            double value = 0;
            double VKPWERT = (double)pm["VKPWERT"];
            dwData = TBMain.NewRow();
            dwData["VKZMANDANT"] = app.Mandant;
            dwData["VKZSA"] = "  ";
            dwData["VKZAUFKRS"] = pm["ORDERNUM"].ToString().Substring(0, 2);
            dwData["VKZAUFLFD"] = pm["ORDERNUM"].ToString().Substring(2, 6);
            dwData["VKZAUFPOS"] = pm["ORDERNUM"].ToString().Substring(8, 3);
            SResult = QueryVKZUAB(dwData, 2);
            foreach (DataRow row in SResult.Tables[0].Rows)
            {
                value = OnVKPWERTChg(row, VKPWERT);
            }
            return value;
        }
        public bool GetInfo()
        {
            bool IsValid = true;
            INFO = "代理:";
            string item = "";
            double rate = 0;
            double value = 0;
            foreach (DataRow row in TBMain.Rows)
            {
                for (int i = 1; i < 6; i++)
                {
                   item=row["VKZVERTNR" + i].ToString();
                   rate = Convert.ToDouble(row["VKZPROV" + i].ToString()) * 0.01; ;
                   if (rate == 0) break; 
                    INFO += item + ":" + rate+"%;";
                }
                INFO += "附加费:";
                for (int i = 1; i < 6; i++)
                {
                    item = row["VKZZUART" + i].ToString();
                    rate = Convert.ToDouble(row["VKZZUABPROZ" + i].ToString()) * 0.01; ;
                    value = Convert.ToDouble(row["VKZZUABWERT" + i].ToString()) * 0.01; ;
                    if (rate + value == 0) break;
                    if (rate > 0 && value > 0) throw new Exception("第"+i.ToString()+"项，费用和比例冲突");
                    if (rate > 0)
                    {
                        INFO += item + ":" + rate + "%;";
                    }
                    else
                    {
                        INFO += item + ":" + value + "$;";
                    }
                }
                INFO += "折扣:";
                for (int i = 1; i < 6; i++)
                {
                    item = row["VKZRABART" + i].ToString();
                    rate = Convert.ToDouble(row["VKZRABPROZ" + i].ToString()) * 0.01; ;
                    value = Convert.ToDouble(row["VKZVERPWERT" + i].ToString()) * 0.01; ;
                    if (rate + value == 0) break;
                    if (rate > 0 && value > 0) throw new Exception("第" + i.ToString() + "项折扣，存在费用和比例冲突");
                    if (rate > 0)
                    {
                        INFO += item + ":" + rate + "%;";
                    }
                    else
                    {
                        INFO += item + ":" + value + "$;";
                    }
                }
            }
            Tracer.Info("附加费","附加费用显示");
            return true;
        }
        public DataSet LOADBYVKK(Dictionary<string, object> pm)
        { 
            dwData = TBMain.NewRow();
            dwData["VKZMANDANT"] = app.Mandant;
            dwData["VKZSA"] = pm["VKZSA"].ToString();
            dwData["VKZAUFKRS"] = pm["KRS"].ToString();
            dwData["VKZAUFLFD"] = pm["LFD"].ToString();
            SResult = QueryVKZUAB(dwData, 3);
            return SResult;
        }
        public DataSet LOADBYVKP(Dictionary<string, object> pm)
        {
            string vkp = pm["VKP"].ToString();
            if (vkp.Length < 8)
                return null;
            dwData = TBMain.NewRow();
            dwData["VKZMANDANT"] = app.Mandant;
            dwData["VKZSA"] = "VK";
            dwData["VKZAUFKRS"] = vkp.Substring(0, 2);
            dwData["VKZAUFLFD"] = vkp.Substring(2, 6);
            dwData["VKZAUFPOS"] = pm["ORDERNUM"].ToString().Substring(8, 3);
            SResult = QueryVKZUAB(dwData, 2);
            return SResult;
        }

        public double OnVKPWERTChg(DataRow dwVKZ, double VKPWERT)
        {
            double value = 0;
            try
            {

                if (dwVKZ == null)
                    return value;
                for (int i = 1; i < 6; i++)
                {
                    double VKZZUABPROZ = Convert.ToDouble(dwVKZ["VKZZUABPROZ" + i].ToString());
                    double VKZZUABWERT = Convert.ToDouble(dwVKZ["VKZZUABWERT" + i].ToString());
                    //附加费
                    value += VKZZUABWERT;
                    if (VKZZUABWERT > 0)
                        continue;
                    if (VKZZUABPROZ > 0)
                    {
                        VKZZUABWERT = Helpers.Helper.RoundX(VKZZUABPROZ * 0.01 * VKPWERT * 0.01, 1) * 100;
                        value += VKZZUABWERT;
                        //dwVKZ["VKZZUABWERT" + i] = VKZZUABWERT;
                    }
                    //折扣
                    double VKZRABPROZ = Convert.ToDouble(dwVKZ["VKZRABPROZ" + i].ToString());
                    double VKZR = 0;
                    if (VKZRABPROZ > 0)
                    {
                        VKZR = Helpers.Helper.RoundX(VKZRABPROZ * 0.01 * VKPWERT * 0.01, 1) * 100;
                        value -= VKZR;
                        //  dwVKZ["VKZGZUWERT" + i] = VKZZUABWERT;
                    }
                }
                UpdateVKZUAB(dwVKZ, app.company, 0);
            }
            catch (Exception ex)
            {
                Tracer.Error(ex.StackTrace, ex);
            }
            return value;
        }
    }
    public partial class VVKZUAB
    {
        VVKPOS _VKP;
        public VVKPOS VKP
        {
            get
            {
                if (_VKP == null) _VKP = new VVKPOS();
                return _VKP;
            }

        }
        private string _VKZTYPE = "";
        public string VKZTYPE
        {
            get
            {
                return _VKZTYPE;
            }
            set { _VKZTYPE = value; }
        } //lENGth 8

        public string VKZVERTNR1 { get { if (dwMaster == null) return ""; return dwMaster["VKZVERTNR1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZVERTNR1"] = value; OnPropertyChanged("VKZVERTNR1", value); } } //lENGth 8
        public string VKZVERTNR2 { get { if (dwMaster == null) return ""; return dwMaster["VKZVERTNR2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZVERTNR2"] = value; OnPropertyChanged("VKZVERTNR2", value); } } //lENGth 8
        public string VKZVERTNR3 { get { if (dwMaster == null) return ""; return dwMaster["VKZVERTNR3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZVERTNR3"] = value; OnPropertyChanged("VKZVERTNR3", value); } } //lENGth 8
        public string VKZVERTNR4 { get { if (dwMaster == null) return ""; return dwMaster["VKZVERTNR4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZVERTNR4"] = value; OnPropertyChanged("VKZVERTNR4", value); } } //lENGth 8
        public double VKZPROV1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZPROV1"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZPROV1"] = value; OnPropertyChanged("VKZPROV1", value); } } //lENGth 0
        public double VKZPROV2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZPROV2"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZPROV2"] = value; OnPropertyChanged("VKZPROV2", value); } } //lENGth 0
        public double VKZPROV3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZPROV3"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZPROV3"] = value; OnPropertyChanged("VKZPROV3", value); } } //lENGth 0
        public double VKZPROV4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZPROV4"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZPROV4"] = value; OnPropertyChanged("VKZPROV4", value); } } //lENGth 0
        public string VKZZUART1 { get { if (dwMaster == null) return ""; return dwMaster["VKZZUART1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZZUART1"] = value; OnPropertyChanged("VKZZUART1", value); } } //lENGth 3
        public double VKZZUABPROZ1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABPROZ1"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABPROZ1"] = value; OnPropertyChanged("VKZZUABPROZ1", value); } } //lENGth 0
        public double VKZZUABWERT1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABWERT1"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABWERT1"] = value; OnPropertyChanged("VKZZUABWERT1", value); } } //lENGth 0
        public string VKZZUART2 { get { if (dwMaster == null) return ""; return dwMaster["VKZZUART2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZZUART2"] = value; OnPropertyChanged("VKZZUART2", value); } } //lENGth 3
        public double VKZZUABPROZ2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABPROZ2"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABPROZ2"] = value; OnPropertyChanged("VKZZUABPROZ2", value); } } //lENGth 0
        public double VKZZUABWERT2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABWERT2"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABWERT2"] = value; OnPropertyChanged("VKZZUABWERT2", value); } } //lENGth 0
        public string VKZZUART3 { get { if (dwMaster == null) return ""; return dwMaster["VKZZUART3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZZUART3"] = value; OnPropertyChanged("VKZZUART3", value); } } //lENGth 3
        public double VKZZUABPROZ3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABPROZ3"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABPROZ3"] = value; OnPropertyChanged("VKZZUABPROZ3", value); } } //lENGth 0
        public double VKZZUABWERT3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABWERT3"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABWERT3"] = value; OnPropertyChanged("VKZZUABWERT3", value); } } //lENGth 0
        public string VKZZUART4 { get { if (dwMaster == null) return ""; return dwMaster["VKZZUART4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZZUART4"] = value; OnPropertyChanged("VKZZUART4", value); } } //lENGth 3
        public double VKZZUABPROZ4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABPROZ4"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABPROZ4"] = value; OnPropertyChanged("VKZZUABPROZ4", value); } } //lENGth 0
        public double VKZZUABWERT4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABWERT4"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABWERT4"] = value; OnPropertyChanged("VKZZUABWERT4", value); } } //lENGth 0
        public double VKZSTMENGE1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZSTMENGE1"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZSTMENGE1"] = value; OnPropertyChanged("VKZSTMENGE1", value); } } //lENGth 0
        public string VKZSTPREIS1 { get { if (dwMaster == null) return ""; return dwMaster["VKZSTPREIS1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZSTPREIS1"] = value; OnPropertyChanged("VKZSTPREIS1", value); } } //lENGth 10
        public double VKZSTMENGE2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZSTMENGE2"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZSTMENGE2"] = value; OnPropertyChanged("VKZSTMENGE2", value); } } //lENGth 0
        public string VKZSTPREIS2 { get { if (dwMaster == null) return ""; return dwMaster["VKZSTPREIS2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZSTPREIS2"] = value; OnPropertyChanged("VKZSTPREIS2", value); } } //lENGth 10
        public double VKZSTMENGE3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZSTMENGE3"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZSTMENGE3"] = value; OnPropertyChanged("VKZSTMENGE3", value); } } //lENGth 0
        public string VKZSTPREIS3 { get { if (dwMaster == null) return ""; return dwMaster["VKZSTPREIS3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZSTPREIS3"] = value; OnPropertyChanged("VKZSTPREIS3", value); } } //lENGth 10
        public double VKZSTMENGE4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZSTMENGE4"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZSTMENGE4"] = value; OnPropertyChanged("VKZSTMENGE4", value); } } //lENGth 0
        public string VKZSTPREIS4 { get { if (dwMaster == null) return ""; return dwMaster["VKZSTPREIS4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZSTPREIS4"] = value; OnPropertyChanged("VKZSTPREIS4", value); } } //lENGth 10
        public string VKZRABART1 { get { if (dwMaster == null) return ""; return dwMaster["VKZRABART1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZRABART1"] = value; OnPropertyChanged("VKZRABART1", value); } } //lENGth 3
        public double VKZRABPROZ1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZRABPROZ1"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZRABPROZ1"] = value; OnPropertyChanged("VKZRABPROZ1", value); } } //lENGth 0
        public string VKZRABART2 { get { if (dwMaster == null) return ""; return dwMaster["VKZRABART2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZRABART2"] = value; OnPropertyChanged("VKZRABART2", value); } } //lENGth 3
        public double VKZRABPROZ2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZRABPROZ2"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZRABPROZ2"] = value; OnPropertyChanged("VKZRABPROZ2", value); } } //lENGth 0
        public string VKZRABART3 { get { if (dwMaster == null) return ""; return dwMaster["VKZRABART3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZRABART3"] = value; OnPropertyChanged("VKZRABART3", value); } } //lENGth 3
        public double VKZRABPROZ3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZRABPROZ3"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZRABPROZ3"] = value; OnPropertyChanged("VKZRABPROZ3", value); } } //lENGth 0
        public string VKZRABART4 { get { if (dwMaster == null) return ""; return dwMaster["VKZRABART4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZRABART4"] = value; OnPropertyChanged("VKZRABART4", value); } } //lENGth 3
        public double VKZRABPROZ4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZRABPROZ4"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZRABPROZ4"] = value; OnPropertyChanged("VKZRABPROZ4", value); } } //lENGth 0
        public string VKZRABART5 { get { if (dwMaster == null) return ""; return dwMaster["VKZRABART5"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZRABART5"] = value; OnPropertyChanged("VKZRABART5", value); } } //lENGth 3
        public double VKZRABPROZ5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZRABPROZ5"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZRABPROZ5"] = value; OnPropertyChanged("VKZRABPROZ5", value); } } //lENGth 0
        public double VKZSTMENGE5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZSTMENGE5"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZSTMENGE5"] = value; OnPropertyChanged("VKZSTMENGE5", value); } } //lENGth 0
        public string VKZSTPREIS5 { get { if (dwMaster == null) return ""; return dwMaster["VKZSTPREIS5"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZSTPREIS5"] = value; OnPropertyChanged("VKZSTPREIS5", value); } } //lENGth 10
        public double VKZVERPWERT1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZVERPWERT1"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZVERPWERT1"] = value; OnPropertyChanged("VKZVERPWERT1", value); } } //lENGth 0
        public double VKZVERPWERT2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZVERPWERT2"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZVERPWERT2"] = value; OnPropertyChanged("VKZVERPWERT2", value); } } //lENGth 0
        public double VKZVERPWERT3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZVERPWERT3"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZVERPWERT3"] = value; OnPropertyChanged("VKZVERPWERT3", value); } } //lENGth 0
        public double VKZVERPWERT4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZVERPWERT4"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZVERPWERT4"] = value; OnPropertyChanged("VKZVERPWERT4", value); } } //lENGth 0

        /*
        public string VKZMANDANT { get { if (dwMaster == null) return ""; return dwMaster["VKZMANDANT"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZMANDANT"] = value; OnPropertyChanged("VKZMANDANT", value); } } //lENGth 2
        public string VKZSA { get { if (dwMaster == null) return ""; return dwMaster["VKZSA"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZSA"] = value; OnPropertyChanged("VKZSA", value); } } //lENGth 2
        public string VKZAUFKRS { get { if (dwMaster == null) return ""; return dwMaster["VKZAUFKRS"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZAUFKRS"] = value; OnPropertyChanged("VKZAUFKRS", value); } } //lENGth 2
        public string VKZAUFLFD { get { if (dwMaster == null) return ""; return dwMaster["VKZAUFLFD"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZAUFLFD"] = value; OnPropertyChanged("VKZAUFLFD", value); } } //lENGth 6
        public string VKZAUFPOS { get { if (dwMaster == null) return ""; return dwMaster["VKZAUFPOS"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZAUFPOS"] = value; OnPropertyChanged("VKZAUFPOS", value); } } //lENGth 3
        public string VKZAENDST { get { if (dwMaster == null) return ""; return dwMaster["VKZAENDST"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZAENDST"] = value; OnPropertyChanged("VKZAENDST", value); } } //lENGth 3
        public double VKZAENZL { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZAENZL"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZAENZL"] = value; OnPropertyChanged("VKZAENZL", value); } } //lENGth 0
        public string VKZAENB { get { if (dwMaster == null) return ""; return dwMaster["VKZAENB"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZAENB"] = value; OnPropertyChanged("VKZAENB", value); } } //lENGth 8
        public double VKZAEND { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZAEND"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZAEND"] = value; OnPropertyChanged("VKZAEND", value); } } //lENGth 0
        public string VKZPROVPFL1 { get { if (dwMaster == null) return ""; return dwMaster["VKZPROVPFL1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZPROVPFL1"] = value; OnPropertyChanged("VKZPROVPFL1", value); } } //lENGth 1
        public string VKZPVBAS1 { get { if (dwMaster == null) return ""; return dwMaster["VKZPVBAS1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZPVBAS1"] = value; OnPropertyChanged("VKZPVBAS1", value); } } //lENGth 1
        public string VKZPVVAR1 { get { if (dwMaster == null) return ""; return dwMaster["VKZPVVAR1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZPVVAR1"] = value; OnPropertyChanged("VKZPVVAR1", value); } } //lENGth 1
        public string VKZPROVPFL2 { get { if (dwMaster == null) return ""; return dwMaster["VKZPROVPFL2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZPROVPFL2"] = value; OnPropertyChanged("VKZPROVPFL2", value); } } //lENGth 1
        public string VKZPVBAS2 { get { if (dwMaster == null) return ""; return dwMaster["VKZPVBAS2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZPVBAS2"] = value; OnPropertyChanged("VKZPVBAS2", value); } } //lENGth 1
        public string VKZPVVAR2 { get { if (dwMaster == null) return ""; return dwMaster["VKZPVVAR2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZPVVAR2"] = value; OnPropertyChanged("VKZPVVAR2", value); } } //lENGth 1
        public string VKZPROVPFL3 { get { if (dwMaster == null) return ""; return dwMaster["VKZPROVPFL3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZPROVPFL3"] = value; OnPropertyChanged("VKZPROVPFL3", value); } } //lENGth 1
        public string VKZPVBAS3 { get { if (dwMaster == null) return ""; return dwMaster["VKZPVBAS3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZPVBAS3"] = value; OnPropertyChanged("VKZPVBAS3", value); } } //lENGth 1
        public string VKZPVVAR3 { get { if (dwMaster == null) return ""; return dwMaster["VKZPVVAR3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZPVVAR3"] = value; OnPropertyChanged("VKZPVVAR3", value); } } //lENGth 1
        public string VKZPVBAS4 { get { if (dwMaster == null) return ""; return dwMaster["VKZPVBAS4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZPVBAS4"] = value; OnPropertyChanged("VKZPVBAS4", value); } } //lENGth 1
        public string VKZPVVAR4 { get { if (dwMaster == null) return ""; return dwMaster["VKZPVVAR4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZPVVAR4"] = value; OnPropertyChanged("VKZPVVAR4", value); } } //lENGth 1
        public string VKZMEEH1 { get { if (dwMaster == null) return ""; return dwMaster["VKZMEEH1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZMEEH1"] = value; OnPropertyChanged("VKZMEEH1", value); } } //lENGth 3
        public string VKZABRKZ1 { get { if (dwMaster == null) return ""; return dwMaster["VKZABRKZ1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZABRKZ1"] = value; OnPropertyChanged("VKZABRKZ1", value); } } //lENGth 1
        public string VKZMEEH2 { get { if (dwMaster == null) return ""; return dwMaster["VKZMEEH2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZMEEH2"] = value; OnPropertyChanged("VKZMEEH2", value); } } //lENGth 3
        public string VKZABRKZ2 { get { if (dwMaster == null) return ""; return dwMaster["VKZABRKZ2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZABRKZ2"] = value; OnPropertyChanged("VKZABRKZ2", value); } } //lENGth 1
        public string VKZMEEH3 { get { if (dwMaster == null) return ""; return dwMaster["VKZMEEH3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZMEEH3"] = value; OnPropertyChanged("VKZMEEH3", value); } } //lENGth 3
        public string VKZABRKZ3 { get { if (dwMaster == null) return ""; return dwMaster["VKZABRKZ3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZABRKZ3"] = value; OnPropertyChanged("VKZABRKZ3", value); } } //lENGth 1
        public string VKZMEEH4 { get { if (dwMaster == null) return ""; return dwMaster["VKZMEEH4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZMEEH4"] = value; OnPropertyChanged("VKZMEEH4", value); } } //lENGth 3
        public string VKZABRKZ4 { get { if (dwMaster == null) return ""; return dwMaster["VKZABRKZ4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZABRKZ4"] = value; OnPropertyChanged("VKZABRKZ4", value); } } //lENGth 1
        public string VKZZUART5 { get { if (dwMaster == null) return ""; return dwMaster["VKZZUART5"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZZUART5"] = value; OnPropertyChanged("VKZZUART5", value); } } //lENGth 3
        public double VKZZUABPROZ5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABPROZ5"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABPROZ5"] = value; OnPropertyChanged("VKZZUABPROZ5", value); } } //lENGth 0
        public double VKZZUABWERT5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABWERT5"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABWERT5"] = value; OnPropertyChanged("VKZZUABWERT5", value); } } //lENGth 0
        public string VKZMEEH5 { get { if (dwMaster == null) return ""; return dwMaster["VKZMEEH5"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZMEEH5"] = value; OnPropertyChanged("VKZMEEH5", value); } } //lENGth 3
        public string VKZABRKZ5 { get { if (dwMaster == null) return ""; return dwMaster["VKZABRKZ5"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZABRKZ5"] = value; OnPropertyChanged("VKZABRKZ5", value); } } //lENGth 1
        public string VKZZUARTF { get { if (dwMaster == null) return ""; return dwMaster["VKZZUARTF"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZZUARTF"] = value; OnPropertyChanged("VKZZUARTF", value); } } //lENGth 3
        public double VKZZUABPROZF { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABPROZF"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABPROZF"] = value; OnPropertyChanged("VKZZUABPROZF", value); } } //lENGth 0
        public double VKZZUABWERTF { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABWERTF"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABWERTF"] = value; OnPropertyChanged("VKZZUABWERTF", value); } } //lENGth 0
        public string VKZMEEHF { get { if (dwMaster == null) return ""; return dwMaster["VKZMEEHF"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZMEEHF"] = value; OnPropertyChanged("VKZMEEHF", value); } } //lENGth 3
        public string VKZABRKZF { get { if (dwMaster == null) return ""; return dwMaster["VKZABRKZF"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZABRKZF"] = value; OnPropertyChanged("VKZABRKZF", value); } } //lENGth 1
        public string VKZZUARTV { get { if (dwMaster == null) return ""; return dwMaster["VKZZUARTV"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZZUARTV"] = value; OnPropertyChanged("VKZZUARTV", value); } } //lENGth 3
        public double VKZZUABPROZV { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABPROZV"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABPROZV"] = value; OnPropertyChanged("VKZZUABPROZV", value); } } //lENGth 0
        public double VKZZUABWERTV { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABWERTV"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABWERTV"] = value; OnPropertyChanged("VKZZUABWERTV", value); } } //lENGth 0
        public string VKZMEEHV { get { if (dwMaster == null) return ""; return dwMaster["VKZMEEHV"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZMEEHV"] = value; OnPropertyChanged("VKZMEEHV", value); } } //lENGth 3
        public string VKZABRKZV { get { if (dwMaster == null) return ""; return dwMaster["VKZABRKZV"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZABRKZV"] = value; OnPropertyChanged("VKZABRKZV", value); } } //lENGth 1
        public string VKZVTYP1 { get { if (dwMaster == null) return ""; return dwMaster["VKZVTYP1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZVTYP1"] = value; OnPropertyChanged("VKZVTYP1", value); } } //lENGth 1
        public string VKZVERPART1 { get { if (dwMaster == null) return ""; return dwMaster["VKZVERPART1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZVERPART1"] = value; OnPropertyChanged("VKZVERPART1", value); } } //lENGth 6
         public string VKZVTYP2 { get { if (dwMaster == null) return ""; return dwMaster["VKZVTYP2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZVTYP2"] = value; OnPropertyChanged("VKZVTYP2", value); } } //lENGth 1
        public string VKZVERPART2 { get { if (dwMaster == null) return ""; return dwMaster["VKZVERPART2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZVERPART2"] = value; OnPropertyChanged("VKZVERPART2", value); } } //lENGth 6
         public string VKZVTYP3 { get { if (dwMaster == null) return ""; return dwMaster["VKZVTYP3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZVTYP3"] = value; OnPropertyChanged("VKZVTYP3", value); } } //lENGth 1
        public string VKZVERPART3 { get { if (dwMaster == null) return ""; return dwMaster["VKZVERPART3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZVERPART3"] = value; OnPropertyChanged("VKZVERPART3", value); } } //lENGth 6
         public string VKZVTYP4 { get { if (dwMaster == null) return ""; return dwMaster["VKZVTYP4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZVTYP4"] = value; OnPropertyChanged("VKZVTYP4", value); } } //lENGth 1
        public string VKZVERPART4 { get { if (dwMaster == null) return ""; return dwMaster["VKZVERPART4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZVERPART4"] = value; OnPropertyChanged("VKZVERPART4", value); } } //lENGth 6
        public string VKZVTYP5 { get { if (dwMaster == null) return ""; return dwMaster["VKZVTYP5"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZVTYP5"] = value; OnPropertyChanged("VKZVTYP5", value); } } //lENGth 1
        public string VKZVERPART5 { get { if (dwMaster == null) return ""; return dwMaster["VKZVERPART5"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZVERPART5"] = value; OnPropertyChanged("VKZVERPART5", value); } } //lENGth 6
        public double VKZVERPWERT5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZVERPWERT5"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZVERPWERT5"] = value; OnPropertyChanged("VKZVERPWERT5", value); } } //lENGth 0
        public string VKZSTKZ1 { get { if (dwMaster == null) return ""; return dwMaster["VKZSTKZ1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZSTKZ1"] = value; OnPropertyChanged("VKZSTKZ1", value); } } //lENGth 1
        public double VKZFCANZ1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZFCANZ1"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZFCANZ1"] = value; OnPropertyChanged("VKZFCANZ1", value); } } //lENGth 0
        public double VKZFCKG1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZFCKG1"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZFCKG1"] = value; OnPropertyChanged("VKZFCKG1", value); } } //lENGth 0
        public string VKZSTPREIS1 { get { if (dwMaster == null) return ""; return dwMaster["VKZSTPREIS1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZSTPREIS1"] = value; OnPropertyChanged("VKZSTPREIS1", value); } } //lENGth 10
        public string VKZSTKZ2 { get { if (dwMaster == null) return ""; return dwMaster["VKZSTKZ2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZSTKZ2"] = value; OnPropertyChanged("VKZSTKZ2", value); } } //lENGth 1
        public double VKZFCANZ2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZFCANZ2"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZFCANZ2"] = value; OnPropertyChanged("VKZFCANZ2", value); } } //lENGth 0
        public double VKZFCKG2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZFCKG2"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZFCKG2"] = value; OnPropertyChanged("VKZFCKG2", value); } } //lENGth 0
        public string VKZSTPREIS2 { get { if (dwMaster == null) return ""; return dwMaster["VKZSTPREIS2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZSTPREIS2"] = value; OnPropertyChanged("VKZSTPREIS2", value); } } //lENGth 10
        
        public string VKZSTKZ3 { get { if (dwMaster == null) return ""; return dwMaster["VKZSTKZ3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZSTKZ3"] = value; OnPropertyChanged("VKZSTKZ3", value); } } //lENGth 1
        public double VKZFCANZ3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZFCANZ3"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZFCANZ3"] = value; OnPropertyChanged("VKZFCANZ3", value); } } //lENGth 0
        public double VKZFCKG3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZFCKG3"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZFCKG3"] = value; OnPropertyChanged("VKZFCKG3", value); } } //lENGth 0
        public string VKZSTPREIS3 { get { if (dwMaster == null) return ""; return dwMaster["VKZSTPREIS3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZSTPREIS3"] = value; OnPropertyChanged("VKZSTPREIS3", value); } } //lENGth 10
         
        public string VKZSTKZ4 { get { if (dwMaster == null) return ""; return dwMaster["VKZSTKZ4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZSTKZ4"] = value; OnPropertyChanged("VKZSTKZ4", value); } } //lENGth 1
        public double VKZFCANZ4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZFCANZ4"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZFCANZ4"] = value; OnPropertyChanged("VKZFCANZ4", value); } } //lENGth 0
        public double VKZFCKG4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZFCKG4"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZFCKG4"] = value; OnPropertyChanged("VKZFCKG4", value); } } //lENGth 0
        public string VKZSTPREIS4 { get { if (dwMaster == null) return ""; return dwMaster["VKZSTPREIS4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZSTPREIS4"] = value; OnPropertyChanged("VKZSTPREIS4", value); } } //lENGth 10
        public string VKZSTKZ5 { get { if (dwMaster == null) return ""; return dwMaster["VKZSTKZ5"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZSTKZ5"] = value; OnPropertyChanged("VKZSTKZ5", value); } } //lENGth 1
        public double VKZFCANZ5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZFCANZ5"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZFCANZ5"] = value; OnPropertyChanged("VKZFCANZ5", value); } } //lENGth 0
        public double VKZFCKG5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZFCKG5"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZFCKG5"] = value; OnPropertyChanged("VKZFCKG5", value); } } //lENGth 0
        public string VKZGZUSCHL1 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUSCHL1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUSCHL1"] = value; OnPropertyChanged("VKZGZUSCHL1", value); } } //lENGth 3
        public string VKZGZUART1 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUART1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUART1"] = value; OnPropertyChanged("VKZGZUART1", value); } } //lENGth 1
        public string VKZGZUNR1 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUNR1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUNR1"] = value; OnPropertyChanged("VKZGZUNR1", value); } } //lENGth 10
        public double VKZGZUWERT1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZGZUWERT1"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZGZUWERT1"] = value; OnPropertyChanged("VKZGZUWERT1", value); } } //lENGth 0
        public string VKZGPROZKZ1 { get { if (dwMaster == null) return ""; return dwMaster["VKZGPROZKZ1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGPROZKZ1"] = value; OnPropertyChanged("VKZGPROZKZ1", value); } } //lENGth 1
        public string VKZGMEEH1 { get { if (dwMaster == null) return ""; return dwMaster["VKZGMEEH1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGMEEH1"] = value; OnPropertyChanged("VKZGMEEH1", value); } } //lENGth 3
        public string VKZGZUSCHL2 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUSCHL2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUSCHL2"] = value; OnPropertyChanged("VKZGZUSCHL2", value); } } //lENGth 3
        public string VKZGZUART2 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUART2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUART2"] = value; OnPropertyChanged("VKZGZUART2", value); } } //lENGth 1
        public string VKZGZUNR2 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUNR2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUNR2"] = value; OnPropertyChanged("VKZGZUNR2", value); } } //lENGth 10
        public double VKZGZUWERT2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZGZUWERT2"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZGZUWERT2"] = value; OnPropertyChanged("VKZGZUWERT2", value); } } //lENGth 0
        public string VKZGPROZKZ2 { get { if (dwMaster == null) return ""; return dwMaster["VKZGPROZKZ2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGPROZKZ2"] = value; OnPropertyChanged("VKZGPROZKZ2", value); } } //lENGth 1
        public string VKZGMEEH2 { get { if (dwMaster == null) return ""; return dwMaster["VKZGMEEH2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGMEEH2"] = value; OnPropertyChanged("VKZGMEEH2", value); } } //lENGth 3
        public string VKZGZUSCHL3 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUSCHL3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUSCHL3"] = value; OnPropertyChanged("VKZGZUSCHL3", value); } } //lENGth 3
        public string VKZGZUART3 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUART3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUART3"] = value; OnPropertyChanged("VKZGZUART3", value); } } //lENGth 1
        public string VKZGZUNR3 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUNR3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUNR3"] = value; OnPropertyChanged("VKZGZUNR3", value); } } //lENGth 10
        public double VKZGZUWERT3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZGZUWERT3"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZGZUWERT3"] = value; OnPropertyChanged("VKZGZUWERT3", value); } } //lENGth 0
        public string VKZGPROZKZ3 { get { if (dwMaster == null) return ""; return dwMaster["VKZGPROZKZ3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGPROZKZ3"] = value; OnPropertyChanged("VKZGPROZKZ3", value); } } //lENGth 1
        public string VKZGMEEH3 { get { if (dwMaster == null) return ""; return dwMaster["VKZGMEEH3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGMEEH3"] = value; OnPropertyChanged("VKZGMEEH3", value); } } //lENGth 3
        public string VKZGZUSCHL4 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUSCHL4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUSCHL4"] = value; OnPropertyChanged("VKZGZUSCHL4", value); } } //lENGth 3
        public string VKZGZUART4 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUART4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUART4"] = value; OnPropertyChanged("VKZGZUART4", value); } } //lENGth 1
        public string VKZGZUNR4 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUNR4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUNR4"] = value; OnPropertyChanged("VKZGZUNR4", value); } } //lENGth 10
        public double VKZGZUWERT4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZGZUWERT4"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZGZUWERT4"] = value; OnPropertyChanged("VKZGZUWERT4", value); } } //lENGth 0
        public string VKZGPROZKZ4 { get { if (dwMaster == null) return ""; return dwMaster["VKZGPROZKZ4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGPROZKZ4"] = value; OnPropertyChanged("VKZGPROZKZ4", value); } } //lENGth 1
        public string VKZGMEEH4 { get { if (dwMaster == null) return ""; return dwMaster["VKZGMEEH4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGMEEH4"] = value; OnPropertyChanged("VKZGMEEH4", value); } } //lENGth 3
        public string VKZGZUSCHL5 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUSCHL5"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUSCHL5"] = value; OnPropertyChanged("VKZGZUSCHL5", value); } } //lENGth 3
        public string VKZGZUART5 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUART5"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUART5"] = value; OnPropertyChanged("VKZGZUART5", value); } } //lENGth 1
        public string VKZGZUNR5 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUNR5"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUNR5"] = value; OnPropertyChanged("VKZGZUNR5", value); } } //lENGth 10
        public double VKZGZUWERT5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZGZUWERT5"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZGZUWERT5"] = value; OnPropertyChanged("VKZGZUWERT5", value); } } //lENGth 0
        public string VKZGPROZKZ5 { get { if (dwMaster == null) return ""; return dwMaster["VKZGPROZKZ5"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGPROZKZ5"] = value; OnPropertyChanged("VKZGPROZKZ5", value); } } //lENGth 1
        public string VKZGMEEH5 { get { if (dwMaster == null) return ""; return dwMaster["VKZGMEEH5"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGMEEH5"] = value; OnPropertyChanged("VKZGMEEH5", value); } } //lENGth 3
        public string VKZGZUSCHL6 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUSCHL6"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUSCHL6"] = value; OnPropertyChanged("VKZGZUSCHL6", value); } } //lENGth 3
        public string VKZGZUART6 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUART6"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUART6"] = value; OnPropertyChanged("VKZGZUART6", value); } } //lENGth 1
        public string VKZGZUNR6 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUNR6"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUNR6"] = value; OnPropertyChanged("VKZGZUNR6", value); } } //lENGth 10
        public double VKZGZUWERT6 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZGZUWERT6"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZGZUWERT6"] = value; OnPropertyChanged("VKZGZUWERT6", value); } } //lENGth 0
        public string VKZGPROZKZ6 { get { if (dwMaster == null) return ""; return dwMaster["VKZGPROZKZ6"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGPROZKZ6"] = value; OnPropertyChanged("VKZGPROZKZ6", value); } } //lENGth 1
        public string VKZGMEEH6 { get { if (dwMaster == null) return ""; return dwMaster["VKZGMEEH6"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGMEEH6"] = value; OnPropertyChanged("VKZGMEEH6", value); } } //lENGth 3
        public string VKZGZUSCHL7 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUSCHL7"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUSCHL7"] = value; OnPropertyChanged("VKZGZUSCHL7", value); } } //lENGth 3
        public string VKZGZUART7 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUART7"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUART7"] = value; OnPropertyChanged("VKZGZUART7", value); } } //lENGth 1
        public string VKZGZUNR7 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUNR7"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUNR7"] = value; OnPropertyChanged("VKZGZUNR7", value); } } //lENGth 10
        public double VKZGZUWERT7 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZGZUWERT7"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZGZUWERT7"] = value; OnPropertyChanged("VKZGZUWERT7", value); } } //lENGth 0
        public string VKZGPROZKZ7 { get { if (dwMaster == null) return ""; return dwMaster["VKZGPROZKZ7"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGPROZKZ7"] = value; OnPropertyChanged("VKZGPROZKZ7", value); } } //lENGth 1
        public string VKZGMEEH7 { get { if (dwMaster == null) return ""; return dwMaster["VKZGMEEH7"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGMEEH7"] = value; OnPropertyChanged("VKZGMEEH7", value); } } //lENGth 3
        public string VKZGZUSCHL8 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUSCHL8"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUSCHL8"] = value; OnPropertyChanged("VKZGZUSCHL8", value); } } //lENGth 3
        public string VKZGZUART8 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUART8"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUART8"] = value; OnPropertyChanged("VKZGZUART8", value); } } //lENGth 1
        public string VKZGZUNR8 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUNR8"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUNR8"] = value; OnPropertyChanged("VKZGZUNR8", value); } } //lENGth 10
        public double VKZGZUWERT8 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZGZUWERT8"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZGZUWERT8"] = value; OnPropertyChanged("VKZGZUWERT8", value); } } //lENGth 0
        public string VKZGPROZKZ8 { get { if (dwMaster == null) return ""; return dwMaster["VKZGPROZKZ8"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGPROZKZ8"] = value; OnPropertyChanged("VKZGPROZKZ8", value); } } //lENGth 1
        public string VKZGMEEH8 { get { if (dwMaster == null) return ""; return dwMaster["VKZGMEEH8"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGMEEH8"] = value; OnPropertyChanged("VKZGMEEH8", value); } } //lENGth 3
        public string VKZGZUSCHL9 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUSCHL9"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUSCHL9"] = value; OnPropertyChanged("VKZGZUSCHL9", value); } } //lENGth 3
        public string VKZGZUART9 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUART9"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUART9"] = value; OnPropertyChanged("VKZGZUART9", value); } } //lENGth 1
        public string VKZGZUNR9 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUNR9"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUNR9"] = value; OnPropertyChanged("VKZGZUNR9", value); } } //lENGth 10
        public double VKZGZUWERT9 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZGZUWERT9"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZGZUWERT9"] = value; OnPropertyChanged("VKZGZUWERT9", value); } } //lENGth 0
        public string VKZGPROZKZ9 { get { if (dwMaster == null) return ""; return dwMaster["VKZGPROZKZ9"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGPROZKZ9"] = value; OnPropertyChanged("VKZGPROZKZ9", value); } } //lENGth 1
        public string VKZGMEEH9 { get { if (dwMaster == null) return ""; return dwMaster["VKZGMEEH9"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGMEEH9"] = value; OnPropertyChanged("VKZGMEEH9", value); } } //lENGth 3
        public string VKZGZUSCHL10 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUSCHL10"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUSCHL10"] = value; OnPropertyChanged("VKZGZUSCHL10", value); } } //lENGth 3
        public string VKZGZUART10 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUART10"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUART10"] = value; OnPropertyChanged("VKZGZUART10", value); } } //lENGth 1
        public string VKZGZUNR10 { get { if (dwMaster == null) return ""; return dwMaster["VKZGZUNR10"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGZUNR10"] = value; OnPropertyChanged("VKZGZUNR10", value); } } //lENGth 10
        public double VKZGZUWERT10 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZGZUWERT10"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZGZUWERT10"] = value; OnPropertyChanged("VKZGZUWERT10", value); } } //lENGth 0
        public string VKZGPROZKZ10 { get { if (dwMaster == null) return ""; return dwMaster["VKZGPROZKZ10"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGPROZKZ10"] = value; OnPropertyChanged("VKZGPROZKZ10", value); } } //lENGth 1
        public string VKZGMEEH10 { get { if (dwMaster == null) return ""; return dwMaster["VKZGMEEH10"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZGMEEH10"] = value; OnPropertyChanged("VKZGMEEH10", value); } } //lENGth 3
        public string VKZAESTAT { get { if (dwMaster == null) return ""; return dwMaster["VKZAESTAT"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZAESTAT"] = value; OnPropertyChanged("VKZAESTAT", value); } } //lENGth 1
        public string VKZERSTKZ { get { if (dwMaster == null) return ""; return dwMaster["VKZERSTKZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZERSTKZ"] = value; OnPropertyChanged("VKZERSTKZ", value); } } //lENGth 1
        public double VKZZUABMG1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABMG1"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABMG1"] = value; OnPropertyChanged("VKZZUABMG1", value); } } //lENGth 0
        public double VKZZUABMG2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABMG2"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABMG2"] = value; OnPropertyChanged("VKZZUABMG2", value); } } //lENGth 0
        public double VKZZUABMG3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABMG3"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABMG3"] = value; OnPropertyChanged("VKZZUABMG3", value); } } //lENGth 0
        public double VKZZUABMG4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABMG4"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABMG4"] = value; OnPropertyChanged("VKZZUABMG4", value); } } //lENGth 0
        public double VKZZUABMG5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZZUABMG5"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZZUABMG5"] = value; OnPropertyChanged("VKZZUABMG5", value); } } //lENGth 0
        public string VKZANTEIL1 { get { if (dwMaster == null) return ""; return dwMaster["VKZANTEIL1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZANTEIL1"] = value; OnPropertyChanged("VKZANTEIL1", value); } } //lENGth 1
        public string VKZWOHER1 { get { if (dwMaster == null) return ""; return dwMaster["VKZWOHER1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZWOHER1"] = value; OnPropertyChanged("VKZWOHER1", value); } } //lENGth 1
        public string VKZANTEIL2 { get { if (dwMaster == null) return ""; return dwMaster["VKZANTEIL2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZANTEIL2"] = value; OnPropertyChanged("VKZANTEIL2", value); } } //lENGth 1
        public string VKZWOHER2 { get { if (dwMaster == null) return ""; return dwMaster["VKZWOHER2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZWOHER2"] = value; OnPropertyChanged("VKZWOHER2", value); } } //lENGth 1
        public string VKZANTEIL3 { get { if (dwMaster == null) return ""; return dwMaster["VKZANTEIL3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZANTEIL3"] = value; OnPropertyChanged("VKZANTEIL3", value); } } //lENGth 1
        public string VKZWOHER3 { get { if (dwMaster == null) return ""; return dwMaster["VKZWOHER3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZWOHER3"] = value; OnPropertyChanged("VKZWOHER3", value); } } //lENGth 1
        public string VKZANTEIL4 { get { if (dwMaster == null) return ""; return dwMaster["VKZANTEIL4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZANTEIL4"] = value; OnPropertyChanged("VKZANTEIL4", value); } } //lENGth 1
        public string VKZWOHER4 { get { if (dwMaster == null) return ""; return dwMaster["VKZWOHER4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZWOHER4"] = value; OnPropertyChanged("VKZWOHER4", value); } } //lENGth 1
        public double VKZANTSUMME { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VKZANTSUMME"].ToString()); } set { if (dwMaster == null) return; dwMaster["VKZANTSUMME"] = value; OnPropertyChanged("VKZANTSUMME", value); } } //lENGth 0
        public string VKZFILLER { get { if (dwMaster == null) return ""; return dwMaster["VKZFILLER"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZFILLER"] = value; OnPropertyChanged("VKZFILLER", value); } } //lENGth 16
 */
    }
}
